<%@page import="cn.yunhe.model.Cate"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<%
		List<Cate> cates=(List<Cate>)session.getAttribute("cates");
	
	%>

	<form action="addNews_action.jsp" enctype="multipart/form-data" method="post">
		标题:<input type="text" name="title"><br><br>
		主题:<select name="cid">
			<%
			
				for(int i=0;i<cates.size();i++){
					Cate c= cates.get(i);
			%>
				
				<option value="<%=c.getCateId()%>"><%=c.getCateName()%></option>
			<%
				}
			%>
			</select>
			<br><br>
			发布图片:<input type="file" name ="pic"><br><br>
			内容:<textarea rows="6" cols="30" name="content"></textarea>
			<input type="submit" value="提交发布">
			
	
	
	</form>
</body>
</html>